package cn.opopopo.design_pattern_learn.创建型.abstract_factory;

// 5. 客户端使用
class Application {
    private Button button;
    private TextBox textBox;

    public Application(GUIFactory factory) {
        this.button = factory.createButton();
        this.textBox = factory.createTextBox();
    }

    public void render() {
        button.render();
        textBox.display();
    }
}